#ifndef _BOARD__H_
#define _BOARD__H_


#define WIFI_SCAN_LIST_SIZE 20


#define I2S_BCK_IO      GPIO_NUM_27//SCK
#define I2S_WS_IO       GPIO_NUM_26//LR
#define I2S_DO_IO       GPIO_NUM_25
#define I2S_DI_IO       GPIO_NUM_35


#define SPI_MODE VSPI_HOST

#if 1

#define SPI_LCD_CLOCK       60*1000*1000
#define SPI_MCP23S08_CLOCK  60*1000*1000


#define SPI_SCLK    GPIO_NUM_18
#define SPI_MISO    GPIO_NUM_19
#define SPI_MOSI    GPIO_NUM_23


#define TFT_SCLK    SPI_SCLK
#define TFT_MISO    SPI_MISO
#define TFT_MOSI    SPI_MOSI
#define TFT_CS      GPIO_NUM_22      
#define TFT_DC      GPIO_NUM_5     
#define TFT_BK      GPIO_NUM_MAX      
#define TFT_RST     GPIO_NUM_MAX 

#define TFT_WITDH   240
#define TFT_HEIGHT  240

#define I2C_SCL     GPIO_NUM_32
#define I2C_SDA     GPIO_NUM_33

#else

#define SPI_LCD_CLOCK       20*1000*1000
#define SPI_MCP23S08_CLOCK  20*1000*1000

#define SPI_SCLK    21
#define SPI_MISO    22
#define SPI_MOSI    19


#define SD_CS       0
#define SD_MOSI     SPI_MOSI
#define SD_MISO     SPI_MISO
#define SD_CLK      SPI_SCLK

#define TFT_MISO    SPI_MISO
#define TFT_MOSI    SPI_MOSI
#define TFT_SCLK    SPI_SCLK
#define TFT_CS      12      
#define TFT_DC      15     
#define TFT_BK      2      
#define TFT_RST     GPIO_NUM_MAX 

#define TFT_WITDH   240
#define TFT_HEIGHT  240

#define I2C_SDA     18
#define I2C_SCL     23


#endif


#endif